Skip to content

BUG: restore limit in RangeIndex.get_indexer #28671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 1, 2019

Conversation

charlesdong1991
Copy link
Member

@charlesdong1991 charlesdong1991 commented Sep 29, 2019

@simonjayhawkins simonjayhawkins added Bug Indexing Related to indexing on series/frames, not to indexes themselves labels Sep 29, 2019
@simonjayhawkins simonjayhawkins added this to the 0.25.2 milestone Sep 29, 2019
Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @charlesdong1991 lgtm. couple of suggestions.

@charlesdong1991
Copy link
Member Author

thanks @simonjayhawkins updated reflecting reviews!

Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @charlesdong1991 for the updates. a few questions.

Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @charlesdong1991 i think a few more changes and that's it!

@charlesdong1991
Copy link
Member Author

Good morning @simonjayhawkins ! and thanks for your reviews! All changed based on your reviews! Have a great day! ^^

Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1037,3 +1045,19 @@ def test_engineless_lookup(self):
assert idx.get_loc("a") == -1

assert "_engine" in idx._cache

def test_reindex_limit(self):
# GH 28631
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn’t belong here
rather with other dataframe reindex tests

look in tests/frame

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, move to tests/frame/test_indexing

Copy link
Member

@jschendel jschendel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good overall, just a couple small nitpicks

@jorisvandenbossche jorisvandenbossche changed the title BUG: add limit in RangeIndex BUG: restore limit in RangeIndex.get_indexer Oct 1, 2019
@jorisvandenbossche jorisvandenbossche merged commit df918be into pandas-dev:master Oct 1, 2019
@jorisvandenbossche
Copy link
Member

@charlesdong1991 thanks a lot for the PR!

@jorisvandenbossche
Copy link
Member

@meeseeksdev backport 0.25.x

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: DataFrame.reindex not following limit - 方法参数的错误
6 participants